package com.geek.factory.service.impl;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.geek.factory.dto.DeviceRepairApprovalLogQueryDTO;
import com.geek.factory.entity.DeviceRepairApprovalLog;
import com.geek.factory.mapper.DeviceRepairApprovalLogMapper;
import com.geek.factory.service.DeviceRepairApprovalLogService;
import com.geek.factory.vo.DeviceRepairApprovalLogVO;
import org.springframework.stereotype.Service;

@Service
public class DeviceRepairApprovalLogServiceImpl  extends ServiceImpl<DeviceRepairApprovalLogMapper, DeviceRepairApprovalLog> implements DeviceRepairApprovalLogService {

    @Override
    public IPage<DeviceRepairApprovalLogVO> getPagedWithDetails(DeviceRepairApprovalLogQueryDTO dto) {
        Page<DeviceRepairApprovalLogVO> page = new Page<>(dto.getPage(), dto.getSize());
        return baseMapper.selectPagedWithDetails(page, dto.getDeviceName(), dto.getApprover(), dto.getDecision());
    }




}



